package com.example.it_com.entity;
// 新增一个类来封装博客评论和用户头像信息
public class CommentWithUserImg {
    private Blogcomment blogcomment;
    private String img;

    public CommentWithUserImg(Blogcomment blogcomment, String img) {
        this.blogcomment = blogcomment;
        this.img = img;
    }

    // Getters and setters
    public Blogcomment getBlogcomment() {
        return blogcomment;
    }
    public void setBlogcomment(Blogcomment blogcomment) {
        this.blogcomment = blogcomment;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}